TARGET = grayland
OBJS =	./obj/main.o\
		./obj/CBaseScene.o\
		./obj/CGameSceneFactory.o\
		./obj/CInGameScene.o\
		./obj/CStartScreenScene.o\

INCDIR =    ../irrpsp/source/include\
            ../irrpsp/source/include/game\
            ../irrpsp/source/include/game\actions\
            ../irrpsp/source/include/game\audio\
            ../irrpsp/source/include/game\core\
            ../irrpsp/source/include/game\net\
            ../irrpsp/source/include/game\video\
            ../irrpsp/source/include/game\scene\
            ../irrpsp/source/include/core\
            ../irrpsp/source/include/gui\
            ../irrpsp/source/include/scene\
            ../irrpsp/source/include/video\
            ../irrpsp/source/include/io\
			./engine/scenes\
			../irrpsp/source/irr\

CFLAGS = -G0 -fexceptions -O2
CXXFLAGS = $(CFLAGS) -fexceptions -fno-rtti
ASFLAGS = $(CFLAGS)

BUILD_PRX = 1
PSP_FW_VERSION = 390
PSP_LARGE_MEMORY = 1

LIBDIR = ../irrpsp/libs\
LDFLAGS =
LIBS= -lengine -lpspwlan -lglut -lGLU -lGL -lpspvfpu -lm -lstdc++ -lpsppower -lpsprtc -lpspaudio -lpspaudiocodec

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = grayland

PSPSDK=$(shell psp-config --pspsdk-path)
include ./irrBuild.mak

./obj/main.o : ./source/main.cpp
	$(CXX) $(CFLAGS) -c -o ./obj/main.o ./source/main.cpp

./obj/CBaseScene.o : ./engine/scenes/CBaseScene.cpp
	$(CXX) $(CXXFLAGS) -c -o ./obj/CBaseScene.o ./engine/scenes/CBaseScene.cpp

./obj/CGameSceneFactory.o : ./engine/scenes/CGameSceneFactory.cpp
	$(CXX) $(CFLAGS) -c -o ./obj/CGameSceneFactory.o ./engine/scenes/CGameSceneFactory.cpp

./obj/CInGameScene.o : ./engine/scenes/CInGameScene.cpp
	$(CXX) $(CXXFLAGS) -c -o ./obj/CInGameScene.o ./engine/scenes/CInGameScene.cpp

./obj/CStartScreenScene.o : ./engine/scenes/CStartScreenScene.cpp
	$(CXX) $(CXXFLAGS) -c -o ./obj/CStartScreenScene.o ./engine/scenes/CStartScreenScene.cpp

